cmake_minimum_required(VERSION 3.16)

set(PROJECT_NAME libmodbus)
project(${PROJECT_NAME})

add_library(${PROJECT_NAME} INTERFACE)

file(GLOB SOURCES 
    *.c
    *.h
)
target_include_directories(${PROJECT_NAME} INTERFACE
    ./
)
target_sources(${PROJECT_NAME} INTERFACE
    ${SOURCES}
)